package com.baizhi.service.impl;

import com.baizhi.dao.AreaDao;
import com.baizhi.entity.Area;
import com.baizhi.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AreaServiceImpl implements AreaService {
    private AreaDao areaDao;
    @Autowired
    public void setAreaDao(AreaDao areaDao) {
        this.areaDao = areaDao;
    }

    @Override
    public List<Area> selectByCityid(String cityid) {
        List<Area> areas = areaDao.selectByCityid(cityid);
        return areas;
    }
}
